package com.itheima.接口;
//实现类可以同时实现多个接口
public class Person implements Swim {
   static int a = 10;
    @Override
    public void swim() {
        System.out.println("人仰泳");
    }
}

class Dog implements Swim{

    @Override
    public void method() {
        System.out.println("实现类完成了对默认方法的重写");
    }

    @Override
    public void swim() {
        System.out.println("狗狗刨");
    }
}